package toolkits;

import java.io.File;
import java.io.FileOutputStream;

import org.apache.commons.codec.binary.Base64;

public class Base64Test {

    /**
     * @param args
     * @throws Exception 
     */
    public static void main(String[] args) throws Exception {
        String last4cc_private="MIIEvwIBADANBgkqhkiG9w0BAQEFAASCBKkwggSlAgEAAoIBAQD3YoK3f9/R3zNu+a3xrg4VqMiVuiNeNQAcQsWjcRLJ/sKr2rW9nHH3fv5wn0CCgjsk+DSue+iDpb+8P1yINOwzp1bC+/uDRaKj6TBVSibQl1E9yKmKb9mlBOlFPGedx+VFuNlj2sd0n5pu93iK5/glh/pe9y0bthE4q1vxiDKQPEcqte7YlltIsgvwVcNHV+fvRl3pNxe9b9WF63o0hS4rasqzSGK1s+jiAmAmL+qH8UlH1N3PPXjJ8QgBjHkByaZ8y5ga9TIAzqFjtdwxA0uT5c2IdbiM6prKxRBnApOBCSleUYZfhNylIbbAdTIAGaDQCKmSNCerH3OPZV8ijqi1AgMBAAECggEBAL+66MahY+27yJglCMw78wyUYMmylwDHoQtGMPlIhKBrQ6OAAcUwACAqm7bbplq/5mjzuZjVzdJiXuTeUq/6HGq4MgUy2K7YBIJ3E4+2xbh63ms9HzF9GLjNwqF3fHML30UXS90ZTea0YDPKtvEpcehcqA58EcjdZiF+pebfgRjJKOFBON40aDx8fnrQk+xXBEUPHNyKtT3rtcxHFkzFis/5eYLvSBmG/KSWu0wuQfphCPGd9/eP90RoxagP1BOd4XcbSqIK4VQx+2HGzJx4aEIgqKFETtgxt7Joezzthpzza+Bw7bCF6QtW8KXbZmNo7ypp+opesJsFPpika/KEw4ECgYEA/dq+00H+ChsHc/dYLyxClm4csQL8+qio/DTPN+Wk+QuAOQc6a49nT10Ogp0uPx3vc5gexEfh2tXkv6HgOff9BOFZ5LOmMcukJ2lQNqhNpR+4nmKQUU4XB6/a+5n1+x7koD6b8ucSTV1hc7WnmibWpHWqX8HDn8T1ROfFkSk5wmECgYEA+XnEXSCKSIkDjQtQ4IN6er87+zatvmzyqJbtCnCQfGIvyCNUJze4559Qtsmgn1HcMuydrDEjSPnWvJp+NF3AfUYAS61l76+bkUy5wNWubJN4fnlW+HPCaewQ6q8jOjo+0gi81o/Cgy2FyYCHV+/DkKKOckYrVf+1ZVMu0tKirtUCgYEAhNEbQErp0H2904XZJK1ClZQ8/Lw0gi0WZQZ4WKWVQBwtVSkb/sTD57kna10zoiBWdSNlDYsSdz2r9juKpqnCPvhs4QTBcpI6a8hlCIPcRAWpwWyOV4vE7ueqajNuiJnsQo8fZuJRKBswbqrfav7hFKDfqEQnxwL01L1zF/T63GECgYEAn1p+aZYNfoO2dvORd7fEFn/symyE0qw43CN7yj1YrXryVn7qlBpty9Xh8sAcD2h0pTqrBIBmr4iW9+YfU0fHWr3KFozuHgon7sn5pQlY3xXb072iJhWbS5l0vNOeRuVJl1Ppe4xcjPoZCTtGOI94dfy/zJKxv78UmWJm+Fd/fvkCgYAJBT2yTjUFE1CHQtTjF2UJ4S0VO159mag5SM4A1DzYnCalspBWxra9C7bW3VvH6WofwIZdbfBVQJOYIHRYU6VHeNJiCI1Ie6TfnhFIYrqFtE67GM1n33fV24ffdsVgrfx6raxub/W6d25OV2YLqvgPFClRkYSrpjF5XJHlbYbW2Q==";
        byte [] b = Base64.decodeBase64(last4cc_private.getBytes());
        FileOutputStream fos = new FileOutputStream(new File("c:\\geric_last4cc_private.der"));
        fos.write(b);
        fos.close();
    }

}
